home *** CD-ROM | disk | FTP | other *** search
- /*
- ****************************************************************************
- *Copyright 1992 Regents of The University of Michigan - All Rights Reserved*
- * *
- * Permission to use, copy, modify, and distribute this software and its *
- * documentation for any purpose and without fee is hereby granted, *
- * provided that the above copyright notice appears in all copies and that *
- * both that copyright notice and this permission notice appear in *
- * supporting documentation, and that the name of The University of Michigan*
- * not be used in advertising or publicity pertaining to distribution of *
- * the software without specific, written prior permission. This software *
- * is supplied as is without expressed or implied warranties of any kind. *
- * *
- * Center for Information Technology Integration *
- * Information Technology Division *
- * The University of Michigan *
- * 519 W. William Street *
- * Ann Arbor, Michigan 48103 *
- * +1 313-764-5440 *
- * FAX: +1 313-764-4434 *
- * info@citi.umich.edu *
- * *
- ****************************************************************************
- */
-
- #include <SysEqu.h>
- #include <OSUtils.h>
- #include <AppleTalk.h>
- #include <Files.h>
-
- #include "AShare.h"
- #include "xvcb.h"
- #include "privileges.h"
-
- AVCB *
- getVCBbyrefnum( short refnum )
- {
- QHdrPtr qh;
- AVCB *vcb;
-
- qh = GetVCBQHdr();
- for ( vcb = (AVCB *)qh->qHead; vcb != NULL; vcb = (AVCB *)vcb->qLink ) {
- if ( vcb->vcbVRefNum == refnum ) {
- break;
- }
- }
- return( vcb );
- }
-
- Boolean
- isafsVCB( AVCB *vcb )
- {
- if ( vcb->vcbFSID == 0 ) {
- return( false );
- }
- return( true );
- }
-